/*
 * Copyright (c) 2018. czmc All Rights Reserved.
 * Author: czmc
 * Email: zxc6355533@163.com
 * Encoding: UTF-8
 */

package top.stime21.myneighbours.api

import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException

/**
 * Created by MZone on 2/14/2017.
 */

class HeadIntercetor : Interceptor {
    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
        return chain.proceed(chain.request().newBuilder()
                //            .addHeader("X-LC-Id", X_LC_Id)
                //            .addHeader("X-LC-Key", X_LC_Key)
                .addHeader("Content-Type", "application/json")
                .build())
    }
}
